package com.gitee.deament.GenEntity;

import com.gitee.deament.tianyancha.core.gencode.*;

public class GenEntityTest3 {

    public static void main(String[] args) {
//上市公司财务简析 难搞! 没搞完
        String id = "361";
        String url = "https://open.tianyancha.com/cloud-open-admin/_feign/interface/find.json?parentId=" + id + "&opened=1&pn=1&ps=50";
        System.out.println(url);
     //   gen(url);
        for (int i = 1; i <= 6; i++) {


        System.out.println("case "+i+":" +
                "                  vo.getResult().setXgbaseinfoV2"+i+"(JSONObject.parseObject(resultObject, XgbaseinfoV2"+i+".class));break;  ");
        }


    }

    private static void gen(String url) {
        GenEntityxgbaseinfoV2.gen(url);
        GenDTO.gen(url);
//        GenRequest.gen(url);
//        GenRequestImpl.gen(url);
    }
}
